<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{$goods.goods_name}-{$tpshop_config['shop_info_store_title']}</title>
        <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
        <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
        <link rel="shortcut icon"  href="{$tpshop_config['shop_info_store_ico']}" />
    </head>

    <body>
        <!--------头部开始-------------->
    <include file="Public/header" />
    <!--------头部结束-------------->
    <link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">
    <script src="__PUBLIC__/js/pc_common.js"></script>
    <link rel="stylesheet" href="__STATIC__/css/jqzoom.css" type="text/css">
    <script src="__STATIC__/js/jquery.jqzoom.js"></script>
    <script src="__PUBLIC__/js/layer/layer.js"></script><!--弹窗js 参考文档 http://layer.layui.com/-->
    <div class="layout">
        <div class="breadcrumb-area">
            <a href="/">首页</a> >>
            <foreach name="navigate_goods" key="k" item="v">
                <a  href="{:U('/Home/Goods/goodsList',array('id'=>$k))}">{$v}</a> >>
            </foreach>
            <span>{$goods.goods_name}</span>
        </div>
        <div class="layout pa-to-10">
            <!--商品图片轮播-->
            <div class="left-area">
                <div class="left-area-tb">
                    <div class="pro-gallery-img">
                        <div class="jqzoom"> <img id="zoomimg" src="{$goods.goods_id|goods_thum_images=400,400}" jqimg="{$goods.goods_id|goods_thum_images=800,800}" id="bigImage" width="480px" height="480px" alt=""/> </div>
                    </div>
                    <!-- 修改的部分-start -->
                    <div class="pro-gallery-area">
                        <div class="pro-gallery-nav">
                            <a href="javascript:;" class="pro-gallery-back next-left disabled"></a>
                            <div class="pro-gallery-thumbs">
                                <ul class="small-pic" id="pro-gallerys" style="left: 0px;">
                                    <foreach name="goods_images_list" item="v" key="k" >
                                        <li class="small-pic-li <if condition="$k eq 0">current</if>">
                                            <a href="javascript:void(0);">
                                                <img src="{$v|get_sub_images=$v[goods_id],60,60}" data-img="{$v|get_sub_images=$v[goods_id],400,400}" data-big="{$v|get_sub_images=$v[goods_id],800,800}">
                                            </a>
                                        </li>
                                    </foreach>
                                </ul>
                            </div>
                            <a href="javascript:;" class="pro-gallery-forward next-right"></a>
                        </div>
                    </div>
                    <!-- 修改的部分-end -->
                </div>
            </div>
            <!--商品图片轮播 end-->

            <div class="right-area-num">
                <div class="right-area">
                    <div class="right-area-le30">
                        <h1>{$goods.goods_name}</h1>
                        <div class="cpxq-explain">
                            <if condition="$flash_sale['description'] neq ''">
                                {$flash_sale['description']}
                                <else/>
                                {$goods.goods_remark}
                            </if>
                        </div>
                    </div>
                </div>
                <div class="right-area ma-to--1">

                    <!--商品促销 start-->
                    <if condition="$goods['prom_type'] eq 1">
                        <div class="bef_fo2" style="font-size:14px; background-color:#F60; color:#FFFFFF; line-height:30px; position:absolute; width:100%">
                            <p style="background-color:#f72862">
                                <span style="font-size:20px; padding:0px 16px 0px 26px; vertical-align:middle; ">抢购价￥{$goods['flash_sale']['price']}</span>
                                <img class="clock_w" src="__STATIC__/images/lz.png"/><span id="surplus_text">300天 01时 01分 01秒</span> 后结束，请快购买
                            </p>
                        </div>
                        <script>
                            // 倒计时
                            function GetRTime2(){
                            //var text = GetRTime('2016/02/27 17:34:00');
                            var text = GetRTime('{$goods['flash_sale']['end_time']|date="Y/m/d H:i:s",###}');
                            $("#surplus_text").text(text);
                            }
                            setInterval(GetRTime2, 1000);
                        </script>
                    </if>
                    <!--商品促销 end-->
                    <div class="right-area-le30 pa-3-0-0-30">

                        <div class="pro-promotions-area">
                            <table class="promotions-tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="60px" align="right">市场价：</td>
                                    <td>
                                        <p>
                                            <span><del>￥{$goods.market_price}</del></span>
                                        </p>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60px" align="right">商城价：</td>
                                    <td>
                                        <p class="co-red fo-si-24 ma-le-6">
                                            ￥<span class="co-red fo-si-24" id="goods_price">{$goods.shop_price}</span>
                                        </p>
                                    </td>
                                </tr>
<!--                                <tr>
                                    <td width="60px" align="right">赠送积分：</td>
                                    <td>
                                        <p>
                                            <span>&nbsp;&nbsp;&nbsp;{$goods.give_integral}</span>
                                        </p>
                                    </td>
                                </tr>-->
                                <if condition="($goods['shop_price'] egt ($goods['exchange_integral']/$point_rate)) AND $goods['exchange_integral'] gt 0">
                                    <tr>
                                        <td width="60px" align="right">促销信息：</td>
                                        <td>
                                            <p class="co-red fo-si-24 ma-le-6">
                                                ￥<span class="co-red fo-si-24">{$goods['shop_price']-$goods['exchange_integral']/$point_rate}+{$goods['exchange_integral']}积分</span>
                                            </p>
                                        </td>
                                    </tr>
                                </if>
                                <tr>
                                    <td width="60px" align="right">商品编号：</td>
                                    <td>
                                        <p class=" ma-le-6">{$goods.goods_sn} <a onClick="collect_goods({$goods.goods_id});" style="color:#00F;">收藏</a></p>
                                        <!--------用户评价-end---------------->
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60px" align="right">商品评分：</td>
                                    <td>
                                        <p class="ma-le-6">
                                            <span class="pf-comment"><i class="score"></i></span>
                                            &nbsp;<a href="#tab2" onClick="switch_tab(this, 'tab2')"><span>(共&nbsp;{$goods.comment_count}&nbsp;条评论)</span></a></p>
                                    </td>
                                </tr>

                                <tr>
                                    <td width="60px" align="right">所属品牌：</td>
                                    <td>
                                <if condition="$goods.brand_name eq ''">
                                    &nbsp;&nbsp;&nbsp;暂无
                                    <else />
                                    <p>&nbsp;&nbsp;&nbsp;{$goods.brand_name}</p>
                                </if>
                                </td>
                                </tr>

                                <tr>
                                    <td width="60px" align="right">服&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务：</td>
                                    <td><p class="ma-le-6">由&nbsp;<b style="color:red;">{$tpshop_config['shop_info_store_name']}</b>&nbsp;负责发货，并提供售后服务</p></td>
                                    <td>
                                        <!-- JiaThis Button BEGIN 分享商品链接-->
                                        <div class="jiathis_style">
                                            <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt" target="_blank"><img src="http://v3.jiathis.com/code_mini/images/btn/v1/jiathis1.gif" border="0" /></a>
                                        </div>
                                        <script>
                                            var jiathis_config = {
                                            url:"http://{$_SERVER[HTTP_HOST]}/index.php?m=Home&c=Goods&a=goodsInfo&id={$_GET[id]}",
                                                    pic:"http://{$_SERVER[HTTP_HOST]}{$goods[goods_id]|goods_thum_images=400,400}",
                                            }
                                            var is_distribut = getCookie('is_distribut');
                                            var user_id = getCookie('user_id');
                                            // 如果已经登录了, 并且是分销商
                                            if (parseInt(is_distribut) == 1 && parseInt(user_id) > 0)
                                            {
                                            jiathis_config.url = jiathis_config.url + "&first_leader=" + user_id;
                                            }
                                            //alert(jiathis_config.url);
                                        </script>
                                        <script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js" charset="utf-8"></script>
                                        <!-- JiaThis Button END 分享商品链接-->
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <form name="buy_goods_form" method="post" id="buy_goods_form" >
                    <div class="right-area he315 ma-to--1">
                        <div class="right-area-le30 pa-3-0-0-30">
                            <div class="pro-promotions-area">
                                <table class="promotions-tab he40-tr-td" width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <foreach name="filter_spec" item="v" key="k" >
                                        <tr>
                                            <td width="60px" align="right">{$k}：</td>
                                            <td>
                                                <ul class="choice-colol ma-le-6">
                                                    <foreach name="v" item="v2" key="k2" >
                                                        <if condition="$v2[src] neq ''">
                                                            <li>
                                                                <div class="color-sku-fant">
                                                                    <div class="sku <if condition="$k2 eq 0 ">sku-bo-blo</if>">
                                                                        <a onClick="switch_spec(this)"><img src="{$v2[src]}"  onClick="$('#bigImage').attr('src', '{$v2[src]}'); $('#bigImage').attr('jqimg', '{$v2[src]}');"/></a>
                                                                        <input type="radio" style="display:none;" name="goods_spec[{$k}]" value="{$v2[item_id]}"  <if condition="$k2 eq 0 ">checked="checked"</if>/>
                                                                        <s></s>
                                                                    </div>
                                                                    <p>{$v2[item]}</p>
                                                                </div>
                                                            </li>
                                                            <else />
                                                            <li>
                                                                <div class="sku  <if condition="$k2 eq 0 ">sku-bo-blo</if>">
                                                        <a onClick="switch_spec(this);" class="choice-size">{$v2[item]}</a>
                                                        <input type="radio"  style="display:none;" name="goods_spec[{$k}]" value="{$v2[item_id]}" <if condition="$k2 eq 0 ">checked="checked"</if>  />
                                                        <s></s>
                                                        </div>
                                                        </li>
                                                        </if>
                                                    </foreach>
                                                </ul>
                                            </td>
                                        </tr>
                                    </foreach>
                                    <tr>
                                        <td width="60px" align="right">购买数量：</td>
                                        <td>
                                            <ul class="choice-colol ma-le-6">
                                                <li>
                                                    <a onClick="switch_num( - 1);" class="choice-number fl" title="减" style="width:24px">-</a>
                                                    <input class="wi43 fl" type="text" value="1" name="goods_num" id="goods_num" readonly/>
                                                    <a onClick="switch_num(1);" class="choice-number fl" title="加" style="width:24px">+</a>
                                                </li>
                                            </ul>
                                        </td>
                                    </tr>
                                    <if condition="empty($filter_spec)">
                                        <tr>
                                            <td align="right" style="vertical-align:top">送&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;货：</td>
                                            <td>由&nbsp;<b style="color:red;">{$tpshop_config['shop_info_store_name']}</b>&nbsp;从 全国最近点 发货，并提供售后服务。如有问题咨询在线客服~!<br/>上午08:30前完成下单下午送达,下午下单隔日第二天送达.</td>
                                        </tr>
                                    </if>
                                </table>
                            </div>
                            <div class="join-a-shopping-cart fl"><!-- location.href='{:U('Home/Cart/cart')}-->
                                <a class="jrgwc-shopping-img jrgwc-shopping-img2" onClick="javascript:AjaxAddCart({$goods.goods_id}, 1, 1);">
                                    <span>立即购买</span>
                                </a>
                            </div>
                            <div class="join-a-shopping-cart ma-le-210 fl">
                                <a class="jrgwc-shopping-img2" onClick="javascript:AjaxAddCart({$goods.goods_id}, 1, 0);">
                                    <span>加入购物车</span>
                                </a>
                            </div>

                        </div>
                    </div>
                    <input type="hidden" name="goods_id" value="{$goods.goods_id}" />
                </form>
            </div>
        </div>
    </div>

    <div style="display:none;" id="shopdilog">
        <div class="ui-popup ui-popup-modal ui-popup-show ui-popup-focus">
            <div i="dialog" class="ui-dialog">
                <div class="ui-dialog-arrow-a"></div>
                <div class="ui-dialog-arrow-b"></div>
                <table class="ui-dialog-grid">
                    <tbody>
                        <tr>
                            <td i="body" class="ui-dialog-body">
                                <div i="content" class="ui-dialog-content" id="content:1459321729418" style="width: 450px; height: auto;">
                                    <div id="addCartBox" class="collect-public" style="display: block;">
                                        <div class="colect-top">
                                            <i class="colect-icon"></i>
                                            <!--<i class="colect-fail"></i>-->
                                            <div class="conect-title">
                                                <span>添加成功</span>
                                                <div class="add-cart-btn fn-clear">
                                                    <a href="javascript:;" class="ui-button ui-button-f80 fl go-shopping">继续购物</a>
                                                    <a href="{:U('Home/Cart/index')}" class="ui-button ui-button-122 fl">去购物车结算</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td i="footer" class="ui-dialog-footer" style="display: none;">
                                <div i="statusbar" class="ui-dialog-statusbar" style="display: none;"></div>
                                <div i="button" class="ui-dialog-button"></div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="layout ma-to-20 ov-hi">
        <div class="wi240 ov-hi fl">
            <div class="product-history-area">
                <div class="hi47 co-grey">
                    <h3 class="fl browse-his">推荐商品</h3>
                    <!--<span class="fr pa-15-16-0-0"><a class="del-dust cu-po"></a></span>-->
                </div>
                <div class="history-bott">
                    <ul class="history-comm">
                        <tpshop sql="select * from `__PREFIX__goods` where is_recommend = 1 order by goods_id desc limit 10" item="v" key="k" >
                            <li>
                                <div>
                                    <p class="p-img-comm fl">
                                        <a href="{:U('Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"><img class="img-comm" src="{$v.goods_id|goods_thum_images=60,60}" alt=""></a>
                                    </p>
                                    <p class="p-name-comm">
                                        <a href="{:U('Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">{$v.goods_name}</a>
                                    </p>
                                    <p class="p-price-comm">
                                        <b>¥{$v.shop_price}</b>
                                    </p>
                                </div>
                            </li>
                        </tpshop>
                    </ul>
                </div>
            </div>
        </div>
        <div class="wi940 ov-hi fr">
            <div class="comm-param">
                <div class="parame-title">
                    <div class="par-titles co-grey">
                        <ul class="commodity-xq tab_li">
                            <li class="current cliks" onClick="switch_tab(this, 'tab1')">
                                <a>商品详情</a>
                            </li>
                            <li class="cliks" onClick="switch_tab(this, 'tab2')">
                                <a>用户评价（{$commentStatistics['c0']}）</a>
                            </li>
                            <li class="cliks" onClick="switch_tab(this, 'tab3')">
                                <a>规格参数</a>
                            </li>
                            <li class="cliks" onClick="switch_tab(this, 'tab4')">
                                <a>售后服务</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-------------------商品详情------------------>
                <div class="parame-bott cliks-bn" style="display:" id="tab1">
                    <div class="commodity-num pro-feature-area">
                        <div class="pro-disclaimer-area ma-to-20">
                            {$goods.goods_content|htmlspecialchars_decode}
                        </div>
                    </div>
                </div>
                <!-------------------规格参数------------------>
                <div class="parame-bott cliks-bn" style="display:none"  id="tab3">
                    <div class="commodity-num pro-feature-area wi850">
                        <table class="modity-zhut" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <th colspan="2"><h3>商品属性</h3></th>
                            </tr>
                            <foreach name="goods_attr_list" item="v" key="k" >
                                <tr>
                                    <td class="wi143">{$goods_attribute[$v[attr_id]]}</td>
                                    <td class="pa-5-0">{$v[attr_value]}</td>
                                </tr>
                            </foreach>
                        </table>
                    </div>
                </div>
                <!-------------------售后服务------------------>
                <div class="parame-bott cliks-bn" style="display:none"  id="tab4">
                    <div class="commodity-num pro-feature-area wi850 padding36-0-36-0">
                        <p class="fo-si-14 li-hi-1-5 fo-fa">
                            {$topic.topic_content|htmlspecialchars_decode}
                            <br>
                        </p>
                    </div>
                </div>
                <!-------------------用户评价------------------>
                <div class="parame-bott ov-hi" style="display:none" name='tab2' id="tab2">
                    <div class="evaluation-top fo-fa di-in-bl">
                        <div class="eval-le1 fl wi146 te-al">
                            <span><b>{$commentStatistics['rate1']}</b>%</span>
                            <em>好评度</em>
                        </div>
                        <div class="eval-le2 fl wi123 pa-to-7">
                            <dl>
                                <dt>好评<em>({$commentStatistics['rate1']}%)</em></dt>
                                <dd><s style=" width:94%"></s></dd>
                            </dl>
                            <dl>
                                <dt>中评<em>({$commentStatistics['rate2']}%)</em></dt>
                                <dd><s style=" width:2%"></s></dd>
                            </dl>
                            <dl>
                                <dt>差评<em>({$commentStatistics['rate3']}%)</em></dt>
                                <dd><s style=" width:4%"></s></dd>
                            </dl>
                        </div>
                        <div class="eval-le3 fl wi516">
                            <dl>
                                <dt>买家评论事项：购买后有什么问题, 满意, 或者不不满, 都可以在这里评论出来, 这里评论全部源于真实的评论.</dt>
                            </dl>
                        </div>
                        <div class="eval-le4 fl wi150 pa-to-43 te-al">
                            <a href="{:U('Home/User/comment')}">发表评价</a>
                        </div>
                    </div>
                    <div class="evaluation-cen fo-fa">
                        <div class="eval-cen-le fl pa-le-12">
                            <ul>
                                <li class="curres cliks">
                                    <a href="javascript:void(0);" data-t='1'>
                                        <span>
                                            全部评价
                                            <em>({$commentStatistics['c0']})</em>
                                        </span>
                                    </a>
                                </li>
                                <li class="cliks">
                                    <a href="javascript:void(0);" data-t='2'>
                                        <span>
                                            好评
                                            <em>({$commentStatistics['c1']})</em>
                                        </span>
                                    </a>
                                </li>
                                <li class="cliks">
                                    <a href="javascript:void(0);" data-t='3'>
                                        <span>
                                            中评
                                            <em>({$commentStatistics['c2']})</em>
                                        </span>
                                    </a>
                                </li>
                                <li class="cliks">
                                    <a href="javascript:void(0);" data-t='4'>
                                        <span>
                                            差评
                                            <em>({$commentStatistics['c3']})</em>
                                        </span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <!--------用户评价-start--------------->
                    <!--<link rel="stylesheet" href="/Public/bootstrap/css/bootstrap.min.css" type="text/css">--->
                    <div class="evaluation-bott pa-to-25 cliks-bn" style="display:block" id="ajax_comment_return">
                        <!--ajax 然后分页数据-->
                    </div>
                    <script>
                        $(document).ready(function(){
                        commentType = 1; // 评论类型
                        ajaxComment(1, 1); // ajax 加载评价列表
                        });
                        // 好评差评 切换
                        $(".eval-cen-le a").click(function(){
                        $(".eval-cen-le li").removeClass('curres');
                        $(this).parent().addClass('curres');
                        commentType = $(this).data('t'); // 评价类型   好评 中评  差评
                        ajaxComment(commentType, 1);
                        });
// 用ajax分页显示评论
                        function ajaxComment(commentType, page){
                        $.ajax({
                        type : "GET",
                                url:"/index.php?m=Home&c=Goods&a=ajaxComment&goods_id={$goods['goods_id']}&commentType=" + commentType + "&p=" + page, //+tab,
                                success: function(data){
                                $("#ajax_comment_return").html('');
                                $("#ajax_comment_return").append(data);
                                }
                        });
                        }
                    </script>
                    <!--------用户评价-end---------------->
                </div>
            </div>
        </div>
    </div>

    <script>





        $(document).ready(function(){
        // 更新商品价格
        get_goods_price();
        $(".jqzoom").jqueryzoom({
        xzoom: 480,
                yzoom: 480,
                offset: 30,
                position: "right",
                preload: 1,
                lens: 1
        });
        });
        /**
         * 切换规格
         */
        function switch_spec(spec)
        {
        $(spec).siblings('input').trigger('click'); // 让隐藏的 单选按钮选中
        $(spec).parent().parent().parent().parent().find("div.sku").removeClass('sku-bo-blo'); //   清空勾选图标
        $(spec).parent().addClass('sku-bo-blo'); // 当前 加上勾选图标
        // 更新商品价格
        get_goods_price();
        }

        /**
         * 购买商品数量加加减减
         */
        function switch_num(num)
        {
        var num2 = parseInt($("#goods_num").val());
        num2 += num;
        if (num2 < 1) num2 = 1; // 保证购买数量不能少于 1
        $("#goods_num").val(num2); // 修改商品购买数量
        // 更新商品价格
        //get_goods_price();
        }
        // 用作 sort 排序用
        function sortNumber(a, b)
        {
        return a - b;
        }
        /*** 查询商品价格*/
        function get_goods_price()
        {

        var goods_price = {$goods.shop_price}; // 商品起始价
        var store_count = {$goods.store_count}; // 商品起始库存

        var spec_goods_price = {$spec_goods_price}; // 规格 对应 价格 库存表   //alert(spec_goods_price['28_100']['price']);
        // 如果有属性选择项
        if (spec_goods_price != null)
        {
        goods_spec_arr = new Array();
        $("input[name^='goods_spec']:checked").each(function(){
        goods_spec_arr.push($(this).val());
        });
        var spec_key = goods_spec_arr.sort(sortNumber).join('_'); //排序后组合成 key
        goods_price = spec_goods_price[spec_key]['price']; // 找到对应规格的价格
        store_count = spec_goods_price[spec_key]['store_count']; // 找到对应规格的库存
        }

        var goods_num = parseInt($("#goods_num").val());
        // 库存不足的情况
        if (goods_num > store_count)
        {
        goods_num = store_count;
        layer.msg('库存仅剩 ' + store_count + ' 件', {icon: 2}); //alert('库存仅剩 '+store_count+' 件');
        $("#goods_num").val(goods_num);
        }
        $("#goods_price").html(goods_price * goods_num); // 变动价格显示
        }

        /**
         * 切换 商品详情  用户评价  规格参数  包装清单  售后服务
         */
        function switch_tab(cur, tab)
        {
        $("#tab1,#tab2,#tab3,#tab4").hide(); // 先全部隐藏
        $("#" + tab).show(); // 再显示其中一个
        $("ul.tab_li li").removeClass("current"); // 先全部样式去除
        $(cur).addClass("current"); //  单独的给当前点击这个加上
        }

        // 验证码切换
        function verify(){
        $('#verify_code').attr('src', '/index.php?m=Home&c=Index&a=verify&type=consult&fontSize=20&length=4&r=' + Math.random());
        }

        //缩略图切换
        $('.small-pic-li').each(function(i, o){
        var lilength = $('.small-pic-li').length;
        $(o).hover(function(){
        $(o).siblings().removeClass('current');
        $(o).addClass('current');
        $('#zoomimg').attr('src', $(o).find('img').attr('data-img'));
        $('#zoomimg').attr('jqimg', $(o).find('img').attr('data-big'));
        if (i == 0){
        $('.next-left').addClass('disabled');
        }
        if (i + 1 == lilength){
        $('.next-right').addClass('disabled');
        }
        });
        })

                //前一张缩略图
                $('.next-left').click(function(){
        var newselect = $('.small-pic>.current').prev();
        $('.small-pic-li').removeClass('current');
        $(newselect).addClass('current');
        $('#zoomimg').attr('src', $(newselect).find('img').attr('data-img'));
        $('#zoomimg').attr('jqimg', $(newselect).find('img').attr('data-big'));
        var index = $('.small-pic>li').index(newselect);
        if (index == 0){
        $('.next-left').addClass('disabled');
        }
        $('.next-right').removeClass('disabled');
        })

                //后前一张缩略图
                $('.next-right').click(function(){
        var newselect = $('.small-pic>.current').next();
        $('.small-pic-li').removeClass('current');
        $(newselect).addClass('current');
        console.log(newselect)
                $('#zoomimg').attr('src', $(newselect).find('img').attr('data-img'));
        $('#zoomimg').attr('jqimg', $(newselect).find('img').attr('data-big'));
        var index = $('.small-pic>li').index(newselect);
        if (index + 1 == $('.small-pic>li').length){
        $('.next-right').addClass('disabled');
        }
        $('.next-left').removeClass('disabled');
        })
    </script>

    <script src="__PUBLIC__/js/jqueryUrlGet.js"></script><!--获取get参数插件-->
    <script> set_first_leader(); //设置推荐人 </script>

    <!--------footer-开始-------------->
    <include file="Public/footer" />
    <!--------footer-结束-------------->
</body>
</html>